package com.hdc.sell.Service;

import com.hdc.sell.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author 郭丽然
 * @program: sell
 * @date 2020/5/6 22:22
 * 功能：
 */
public interface OrderService {
    //1创建订单
    public OrderDTO create(OrderDTO orderDTO);

    //2查询某个订单
    public OrderDTO findOne(String orderId);

    //3查询订单列表（查询一组订单）
    Page<OrderDTO> findList(String buyerOpenid, Pageable pageable);

    //4取消订单
    public OrderDTO cancel(OrderDTO orderDTO);

    //5完结订单
    public OrderDTO finish(OrderDTO orderDTO);

    //6支付订单
    public OrderDTO paid(OrderDTO orderDTO);

    //7查询所有订单
    Page<OrderDTO> findList(Pageable pageable);

}
